﻿#define DEVELOP

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Reflection;
using System.Configuration;
using System.Threading;
using System.Globalization;

#if !DEVELOP
using Mota.DynamicForms;
#endif

namespace Mota.TestApplication
{

    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
#if DEVELOP

            Thread.CurrentThread.CurrentCulture = new CultureInfo("uk-UA");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("uk-UA");
            //ConnectionManager.Add("editFormConnection",
            //    new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["gryphonedevelop"].ConnectionString));
#else
            SplashScreen.ShowSplashScreen(typeof(Program));
            Application.DoEvents();
            SplashScreen.SetStatus("Starting application");
           // System.Threading.Thread.Sleep(1000);
            Application.Run(new LoginForm());
#endif
            Application.Run(new TestForm());
        }
    }
}
